import http from "@/axios/index.js";
import {handleError, handleSuccess} from "@/api/index.js";


export  const ChatAip = {

    //获取好友列表
    friendList() {
        return http.get('/api/friend/list', {})
            .then(res => handleSuccess(res, '获取好友列表'))
            .catch(error => handleError(error, '获取好友列表失败', '服务器连接异常'))
    },


}